{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post">
            <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">开始时间</label>
                  <div class="layui-input-inline">
                    <input type="text" name="start_time" id="start-date" value="" placeholder="yyyy-MM-dd HH:mm:ss" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">结束时间</label>
                  <div class="layui-input-inline">
                    <input type="text" name="end_time" id="end-date" value="" placeholder="yyyy-MM-dd HH:mm:ss" autocomplete="off" class="layui-input">
                  </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="i" lay-submit="">导出</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
<script type="text/javascript">
  layui.use('laydate', function(){
  var laydate = layui.laydate;
    laydate.render({
      elem: '#start-date'
      ,type: 'datetime'
      ,min: -60 //7天前
      ,max: 1 //7天后
      ,theme: 'molv'
    });
    laydate.render({
      elem: '#end-date'
      ,type: 'datetime'
      ,min: -60 //7天前
      ,max: 1 //7天后
      ,theme: 'molv'
    });
  });
</script>
{/block}